package cn.newhopedairy.schedule.job;

import cn.newhopedairy.delivery.client.DeliveryOrderClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 报货队列调度Job
 *
 * @author Neo.Li
 * @date 2020-10-1210:16
 */
@Slf4j
@Component
public class DeclareGoodsQueueJob {
    @Resource
    private DeliveryOrderClient deliveryOrderClient;

    @Scheduled(cron = "*/10 * * * * *")
    private void declareGoodsQueueJob() {
        deliveryOrderClient.triggerDeclareGoods();
    }
}
